﻿using Microsoft.AspNetCore.Mvc;

namespace MVC.Controllers
{
    /// <summary>
    /// 课程
    /// </summary>
    [Route("[controller]")]
    [Route("bb")]
    public class CourseController : Controller
    {
        // [Route("")]
        [Route("[action]")]
        [Route("/idd")] // 以/开头则不是组合路由（而是特性路由） www.bamn.cn/idd
        public IActionResult Index()
        {
            return View();
        }


        [Route("nihao")]
        public IActionResult Learn(int id)
        {
            return View();
        }

        [HttpPost]
        public IActionResult Learn(string index)
        {
            return View();
        }
    }
}